﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpModelInterface.h"
#include "IObject.h"

namespace gcmp {

    class UniIdentity;

    typedef std::vector<std::pair<std::wstring, std::vector<UniIdentity> > > GroupParameterUidsArray;

    /// \brief 参数分组、分组顺序以及参数顺序调整接口
    class GCMP_MODEL_INTERFACE_EXPORT IParameterGroupSorter : public IObject
    {
        DEFINE_CAST_DERIVED(gcmp::IParameterGroupSorter, gcmp::IObject);

    public:

        /// \brief 调整参数所在组别、分组的顺序以及参数在组内的顺序
        ///
        /// \param allGroupParameters 平台建议的参数分组以及顺序
        /// \param outSortedGroupParameters 调整后参数分组以及排序
        virtual void GroupAndSortParameters(GroupParameterUidsArray& allGroupParameters, GroupParameterUidsArray& outSortedGroupParameters) const = 0;
    };

}// namespace gcmp


